home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000144_psh@home.com_Sun Nov 11 14:14:06 EST 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
45 lines
Article: 12964 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!news-peer.gip.net!news.gsl.net!gip.net!newshub2.rdc1.sfba.home.com!news.home.com!news2.rdc1.bc.home.com.POSTED!not-for-mail
From: jens <psh@home.com>
Subject: Re: Hex operations in Kermit
Newsgroups: comp.protocols.kermit.misc
References: <I72H7.79555$Gh2.24053794@news2.rdc1.bc.home.com>
Lines: 23
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-No-Archive: yes
Message-ID: <XIzH7.83484$Gh2.25452683@news2.rdc1.bc.home.com>
Date: Sun, 11 Nov 2001 18:47:19 GMT
NNTP-Posting-Host: 24.77.61.172
X-Complaints-To: abuse@home.net
X-Trace: news2.rdc1.bc.home.com 1005504439 24.77.61.172 (Sun, 11 Nov 2001 10:47:19 PST)
NNTP-Posting-Date: Sun, 11 Nov 2001 10:47:19 PST
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12964
jens wrote:
> C-Kermit allows me to send hex code out the serial port with the OUTPUT
> \xnn command. I am looking for a way to receive hex strings, find a match
> and do a task based on what hex string was received. I tried doing this
> with MINPUT and the \xnn notation but Kermit is just splitting it's gut at
> my feable attempts at this.
> How would I go about testing for lets say two hex strings \xaa\xab and
> \x3e\x12 and depending on which string it matches branching to a task
> list.
I received lots of help from Frank da Cruz (thanks again !!) and most of my
testing for hex characters is working. It seems though that \x00 (nul) is a
special case for some reason and testing for it does not succeed. Does
anyone know a work-around for this ?
As an example, my program might receive the following hex string:
ab 04 cf 69 e8 d5 5c ab 03 93 00 00 bf
and based on that needs to send out a reply.
Thanks
Jens